﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.Atmel.AVR
{
    /// <summary>
    /// Surrogate for <see cref="AvrMemoryClassInfo"/> class.
    /// </summary>
    public class AvrMemoryClassInfoSurrogate : MemoryClassInfoSurrogateBase<AvrMemoryClassInfo>
    {
        protected override AvrMemoryClassInfo CreateInstance()
        {
            return new AvrMemoryClassInfo(
                Name,
                MemorySize,
                EmptyValue,
                ParallelOptions,
                SerialOptions,
                CanRead,
                CanWrite,
                CanErase);
        }

        public AvrMemorySerialOptions SerialOptions
        {
            get;
            set;
        }

        public AvrMemoryParallelOptions ParallelOptions
        {
            get;
            set;
        }
    }
}
